package com.pruebas.andEngine;

import org.anddev.andengine.engine.handler.physics.PhysicsHandler;
import org.anddev.andengine.entity.sprite.AnimatedSprite;
import org.anddev.andengine.opengl.texture.region.TiledTextureRegion;

class HelicopteroAnimado extends AnimatedSprite{
	private final PhysicsHandler mPhysicsHandler;
	
	 public HelicopteroAnimado(final float pX, final float pY, final TiledTextureRegion pTextureRegion) {
	      super(pX, pY, pTextureRegion);
	      this.mPhysicsHandler = new PhysicsHandler(this);
	      this.registerUpdateHandler(this.mPhysicsHandler);
	  }

	  public void setVelocityY(float velocity){
	    mPhysicsHandler.setVelocityY(velocity);
	  }
}
